package cn.mrlong.usbcamera.utils;

import android.os.CountDownTimer;

public class CountDown extends CountDownTimer {
    private CountDownInterface countDownInterface;
    public CountDown(long millisInFuture, long countDownInterval, CountDownInterface countDownInterface) {
        super(millisInFuture, countDownInterval);
        if (null!=countDownInterface){
            this.countDownInterface = countDownInterface;
        }
    }

    @Override
    public void onTick(long millisUntilFinished) {

    }

    @Override
    public void onFinish() {
        if (null!=countDownInterface){
            countDownInterface.onFinish();
        }
    }
}
